package com.tyl.abstract抽象工厂模式;

import com.tyl.abstract抽象工厂模式.XiaomPhone;
import com.tyl.abstract抽象工厂模式.XiaomiRouter;
import com.tyl.abstract抽象工厂模式.jk.IProductFactory;
import com.tyl.abstract抽象工厂模式.jk.IRouterProduct;
import com.tyl.abstract抽象工厂模式.jk.IphoneProduct;

public class XiaomiFactory implements IProductFactory {
    @Override
    public IphoneProduct iphoneProduct() {
        return new XiaomPhone();
    }

    @Override
    public IRouterProduct irouterProduct() {
        return new XiaomiRouter();
    }
}
